//********************************************************************************************************
// Product Name: MapWindow.dll Alpha
// Description:  The basic module for MapWindow version 6.0
//********************************************************************************************************
// The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); 
// you may not use this file except in compliance with the License. You may obtain a copy of the License at 
// http://www.mozilla.org/MPL/ 
//
// Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF 
// ANY KIND, either expressed or implied. See the License for the specificlanguage governing rights and 
// limitations under the License. 
//
// The Original Code is from MapWindow.dll version 6.0
//
// The Initial Developer of this Original Code is Ted Dunsford. Created 6/6/2008 4:04:55 PM
// 
// Contributor(s): (Open source contributors should list themselves and their modifications here). 
//
//********************************************************************************************************

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;

using MapWindow.DirectX;

using Microsoft.DirectX;
using Microsoft.DirectX.Direct3D;

namespace MapWindow.DirectX
{


    /// <summary>
    /// DrawingCompleted
    /// </summary>
    public class DrawCompletedArgsDX: DrawArgsDX
    {
        #region Private Variables

       
        private bool _cancelled;
        private Exception _exception;
  

        #endregion

        #region Constructors

        /// <summary>
        /// Creates a new instance of DrawingCompleted
        /// </summary>
        public DrawCompletedArgsDX(DrawArgsDX args, bool cancelled, Exception exception)
            : base(args.Device, args.Camera, args.Part, args.Stage)
        {
            _cancelled = cancelled;
            _exception = exception;
        }

        #endregion

        #region Methods

        #endregion

        #region Properties



        /// <summary>
        /// Gets a boolean that is true if the drawing method was cancelled.
        /// </summary>
        public bool Cancelled
        {
            get { return _cancelled; }
            protected set { _cancelled = value; }
        }

        /// <summary>
        /// Gets the Exception if this drawing method threw an exception 
        /// </summary>
        public Exception Exception
        {
            get { return _exception; }
            protected set { _exception = value; }
        }

   
        #endregion



    }
}
